
function User(name, age) {
  this.name = name;
  this.age = age;
}
User.prototype.show = function() {
  console.log(this.name, this.age);
};

function Admin(...args) {
	// console.log(super)
	
  // console.log(args);
  User.apply(this, args);
}
Admin.prototype = Object.create(User.prototype);
let xj = new Admin("向军", 18);
xj.show();

function Member(...args) {
  User.apply(this, args);
}
Member.prototype = Object.create(User.prototype);
let lisi = new Member("李四", 19);
lisi.show();


